package com.liuziha.cloudLzhConsumer.service;

import com.liuzihao.cloudLzhPayment.pojo.CommentResult;
import com.liuzihao.cloudLzhPayment.pojo.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2022-01-09 19:45
 * @Modified By:
 */
@FeignClient(value = "CloudPayment")
@Component
public interface PaymentService {
    @GetMapping("CloudPayment/payment/getPaymentById/{id}")
    CommentResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
